package com.djk.utils;

public class IdUtil {
    private static final ThreadLocal<Integer> threadLocal = new ThreadLocal();

    public static Integer getId() {
        return threadLocal.get();
    }

    public static void setId(Integer id) {
        threadLocal.set(id);
    }

    public static void remove() {
        threadLocal.remove();
    }


}
